<div id="sf_admin_container">
	<h1>Liste des domaines</h1>
	<div id="listeQuiArbore">
	<?php if($root == null):?>
		<strong>Aucun domain dans la base !!!</strong>
	<?php else: ?>
		<div id="tree"></div>
		<script type="text/javascript">
		    $(function(){
		        $("#tree").dynatree({
				  onQueryActivate: function(activate, dtnode) {
       				if( activate && dtnode.data.url )
						window.location.href = dtnode.data.url;
      				},
					children: <?php echo  html_entity_decode($json)  ?>,
					clickFolderMode: 1,
					rootVisible: false,
					keyboard: true, 
				    strings: {
				        loading: "Chargement…",
				        loadError: "Erreur !"
				    },
			    	cookieId: "kjhdx",   
					debugLevel: 0,
		            persist: true
		        });
		    });
		</script>
	<?php endif; ?>
	</div>
</div>
